#ifndef foodlistslider_h
#define foodlistsliter_h

#include "FoodView.h"
#include "juce_amalgamated.h"

class FoodListSlider: public Slider
{
private:
	FoodView* foodView;
public:
	FoodListSlider(FoodView* view, String title) :
		Slider(title), foodView(view)
	{

	}

	void stoppedDragging()
	{
		foodView->setServingPortion(getValue());
	}

	void valueChanged()
	{
		foodView->setServingPortion(getValue());
	}
};

#endif
